<#setting number_format="#.##" />
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>泉州台商投资区安置房（${strUtils.getNotNullText(azProjectNamelistStr)}）计收契税情况表</title>
    <style>
        body {
            font-family: SimSun, Arial Unicode MS, Lucida Sans Unicode, Arial, verdana, arial, helvetica, sans-serif;
        }

        .printContent {
            margin: 0px;
            padding: 0px;
            font-size: 16px;
        }

        .printContent p {
            margin: 0px;
            padding: 0px;
            text-align: left;
            text-indent: 2em;
            line-height: 24px;
            width: 95%;
            margin-left: 20px;
        }

        .printContent .printTitle {
            text-indent: 0em;
            font-size: 24px;
            text-align: center;
            font-weight: bold;
            height: 36px;
        }

        .border {
            text-align: center;
            padding-left: 10px;
            padding-right: 10px;
            border-bottom: 1px solid #000000;
        }

        .borderBlock500 {
            text-align: center;
            width: 500px;
            display: inline-block;
            border-bottom: 1px solid #000000;
        }

        .paddingLeft {
            padding-left: 300px;
        }

        @page {
            margin: 5mm 10mm 0mm 10mm;
            size: 297mm 210mm;
        }

        .pageBreak {
            page-break-before: always
        }

        .table_border_top_hidden {
            border-top: hidden;
        }

        .table_border_bottom_hidden {
            border-bottom: hidden;
            text-overflow: inherit;
            overflow: visible;
            height: auto;
            white-space: normal;
        }

        table {
            margin: auto;
            width: 95%;
            border-collapse: collapse;
            border-top: 2px solid #000000;
            border-left: 2px solid #000000;
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            -fs-table-paginate: paginate;
            border-spacing: 0;
        }

        th,
        td {
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            font-size: 14px;
            margin-left: 5px;
            height: 28px;
            page-break-inside: avoid;
            text-align: center;
        }
    </style>
</head>

<body>
<div class="printContent">
    <table class="table_border_bottom_hidden">
        <tr>
            <td colspan="19">
                <p class="printTitle">
                    泉州台商投资区安置房（${strUtils.getNotNullText(azProjectNamelistStr)}）计收契税情况表
                </p>
            </td>
        </tr>
        <tr>
            <td colspan="19">
                <p style="font-size: 14px;  text-indent: 0em;">
                    单位：泉州台商投资区城市建设发展有限公司&#160;
                    协议编号：${strUtils.getNotNullText(contract.contractCode)}&#160;
                    电话号码：${strUtils.getNotNullText(contract.tel)}&#160;
                    选房号：${strUtils.getNotNullText(contract.chooseHouseNum)}&#160;
                    选房时间：${dateUtils.dateToStringDefault(contract.chooseHouseDate)}
                </p>
            </td>
        </tr>
        <tr>
            <td rowspan="2" style="width: 2%">序号</td>
            <td rowspan="2" style="width: 6%">产权登记人</td>
            <td rowspan="2" style="width: 4%">是否交房</td>
            <td rowspan="2" style="width: 10%">证件号</td>
            <td rowspan="2">安置房<br/>坐落</td>
            <td rowspan="2">安置房<br/>面积</td>
            <td rowspan="2">安置房<br/>金额</td>
            <td rowspan="2">外售<br/>面积</td>
            <td rowspan="2">外售<br/>金额</td>
            <td rowspan="2">房屋<br/>性质</td>
            <td rowspan="2">拆迁<br/>面积</td>
            <td rowspan="2">拆迁补偿<br/>金额</td>
            <td rowspan="2">减免<br/>税额</td>
            <td colspan="2">契税3%</td>
            <td colspan="2">印花税0.025%</td>
            <td rowspan="2">小计</td>
        </tr>
        <tr>
            <td>计税<br/>基数</td>
            <td>应交<br/>税款</td>
            <td>计税<br/>基数</td>
            <td>应交<br/>税款</td>
        </tr>
        <#assign index=0 />
        <!--序号-->
        <#assign azHouseAreaTotal=0 />
        <!--安置房面积合计-->
        <#assign taxHouseMoneyTotal=0 />
        <!--安置房金额合计-->
        <#assign taxAzAreaTotal=0 />
        <!--拆迁面积合计-->
        <#assign taxAzAreaMoneyTotal=0 />
        <!--拆迁补偿金额合计-->
        <#assign subTaxMoneyTotal=0 />
        <!--减免税额合计-->
        <#assign taxBaseMoneyTotal=0 />
        <!--计税基数合计-->
        <#assign shouldTaxMoneyTotal=0 />
        <!--应缴税款合计-->
        <#assign taxMoneySumTotal=0 />
        <!---->
        <#assign yhTaxBaseMoneyTotal=0 />
        <#assign yhTaxMoneyTotal=0 />
        <!--小计合计-->
        <#if houseList??>
            <#list houseList as house>
                <!--房屋列表-->
                <#assign index=index+ 1 />
                <!--序号-->
                <#assign buyHousePersonHouseList=(buyHousePersonHouseMap[house.id?c])! />
                <tr>
                    <td>${intUtils.getNotNullStr(index)}</td>
                    <td>
                        <#if buyHousePersonHouseList?? && buyHousePersonHouseList?size != 0>
                            <#list buyHousePersonHouseList as buyHousePersonHouse>
                                ${strUtils.getNotNull(buyHousePersonHouse.name)}
                            </#list>
                        </#if>
                    </td>
                    <td>
                       是
                    </td>
                    <td>
                        <#if buyHousePersonHouseList?? && buyHousePersonHouseList?size != 0>
                            <#list buyHousePersonHouseList as buyHousePersonHouse>
                                ${strUtils.getNotNull(buyHousePersonHouse.id_card)}
                            </#list>
                        </#if>
                    </td>


                    <td>${house.buildNum}幢${house.houseNum}</td>
                    <#assign azHouseAreaTotal=bigUtils.getSum(azHouseAreaTotal,house.buildArea) />
                    <td>${house.buildArea}</td>
                    <#assign taxHouseMoneyTotal=bigUtils.getSum(taxHouseMoneyTotal,house.taxHouseMoney) />
                    <td>${bigUtils.getNotNullStr(house.taxHouseMoney)}</td>
                    <!--安置房金额-->
                    <td>0.00</td>
                    <td>0.00</td>
                    <td>住宅</td>
                    <#assign taxAzAreaTotal=bigUtils.getSum(taxAzAreaTotal,house.taxAzArea) />
                    <td>${bigUtils.getNotNullStr(house.taxAzArea)}</td>
                    <!--拆迁补偿面积-->
                    <#assign taxAzAreaMoneyTotal=bigUtils.getSum(taxAzAreaMoneyTotal,house.taxAzAreaMoney) />
                    <td>${bigUtils.getNotNullStr(house.taxAzAreaMoney)}</td>
                    <!--拆迁补偿金额-->
                    <#assign
                            subTaxMoney=bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(house.taxAzAreaMoney,1.05,2),0.03) />
                    <#assign subTaxMoneyTotal=bigUtils.getSum(subTaxMoneyTotal,subTaxMoney) />
                    <td>${bigUtils.getNotNullStr(subTaxMoney)}</td>
                    <!--减免税额-->
                    <#assign
                            taxBaseMoney=bigUtils.getBigAndBigDiv(bigUtils.getBigAndBigSub(house.taxHouseMoney,house.taxAzAreaMoney),1.05,2) />
                    <#assign taxBaseMoneyTotal=bigUtils.getSum(taxBaseMoneyTotal,taxBaseMoney) />
                    <td>${bigUtils.getNotNullStr(taxBaseMoney)}</td>
                    <!--计税基数-->
                    <#assign
                            shouldTaxMoney=bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(bigUtils.getBigAndBigSub(house.taxHouseMoney,house.taxAzAreaMoney),1.05,2),0.03) />
                    <#assign shouldTaxMoneyTotal=bigUtils.getSum(shouldTaxMoneyTotal,shouldTaxMoney) />
                    <td>${bigUtils.getNotNullStr(shouldTaxMoney)}</td>
                    <!--应交税款-->
                    <td>0.00</td>
                    <td>0.00</td>
                    <#assign
                            taxMoneySum=bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(bigUtils.getBigAndBigSub(house.taxHouseMoney,house.taxAzAreaMoney),1.05,2),0.03) />
                    <#assign taxMoneySumTotal=bigUtils.getSum(taxMoneySumTotal,taxMoneySum) />
                    <td>${bigUtils.getNotNullStr(taxMoneySum)}</td>
                    <!--小计-->
                </tr>
            </#list>
        </#if>
        <!--储物间列表-->
        <#if storageRoomList??>
            <#list storageRoomList as storageRoom>

                <#assign index=index+ 1 />
                <!--序号-->
                <#assign buyHousePersonStorageRoomList=(buyHousePersonStorageRoomMap[storageRoom.id?c])! />
                <tr>
                    <td>${intUtils.getNotNullStr(index)}</td>
                    <td>
                        <#if buyHousePersonStorageRoomList?? && buyHousePersonStorageRoomList?size != 0>
                            <#list buyHousePersonStorageRoomList as buyHousePersonStorageRoom>
                                ${strUtils.getNotNull(buyHousePersonStorageRoom.name)}
                            </#list>
                        </#if>
                    </td>
                    <td>
                        是
                    </td>
                    <td>
                        <#if buyHousePersonStorageRoomList?? && buyHousePersonStorageRoomList?size != 0>
                            <#list buyHousePersonStorageRoomList as buyHousePersonStorageRoom>
                                ${strUtils.getNotNull(buyHousePersonStorageRoom.id_card)}
                            </#list>
                        </#if>
                    </td>
                    <td>储藏间${storageRoom.houseNum}</td>
                    <#assign azHouseAreaTotal=bigUtils.getSum(azHouseAreaTotal,storageRoom.buildArea) />
                    <td>${storageRoom.buildArea}</td>
                    <#assign taxHouseMoney=bigUtils.getBigAndBigMul(storageRoom.buildArea,2000) />
                    <#assign taxHouseMoneyTotal=bigUtils.getSum(taxHouseMoneyTotal,taxHouseMoney) />
                    <td>${bigUtils.getNotNullStr(taxHouseMoney)}</td>
                    <!--安置房金额-->
                    <td>0.00</td>
                    <td>0.00</td>
                    <td>储物间</td>
                    <td>${bigUtils.getNotNullStr(0)}</td>
                    <!--拆迁补偿面积-->
                    <td>${bigUtils.getNotNullStr(0)}</td>
                    <!--拆迁补偿金额-->
                    <td>${bigUtils.getNotNullStr(0)}</td>
                    <!--减免税额-->
                    <#assign taxBaseMoney=bigUtils.getBigAndBigDiv(taxHouseMoney,1.05,2) />
                    <#assign taxBaseMoneyTotal=bigUtils.getSum(taxBaseMoneyTotal,taxBaseMoney) />
                    <td>${bigUtils.getNotNullStr(taxBaseMoney)}</td>
                    <!--计税基数-->
                    <#assign shouldTaxMoney=bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(taxHouseMoney,1.05,2),0.03) />
                    <#assign shouldTaxMoneyTotal=bigUtils.getSum(shouldTaxMoneyTotal,shouldTaxMoney) />
                    <td>${bigUtils.getNotNullStr(shouldTaxMoney)}</td>
                    <!--应交税款-->
                    <#assign yhTaxBaseMoneyTotal=bigUtils.getSum(yhTaxBaseMoneyTotal,taxHouseMoney) />
                    <td>${bigUtils.getNotNullStr(taxHouseMoney)}</td><!--印花税 基数-->
                    <#assign taxYhTax=bigUtils.getBigAndBigMul(taxHouseMoney,0.00025) />
                    <#assign yhTaxMoneyTotal=bigUtils.getSum(yhTaxMoneyTotal,taxYhTax) />
                    <td>${bigUtils.getNotNullStr(taxYhTax)}</td>
                    <#assign taxMoneySum=bigUtils.getSum(bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(taxHouseMoney,1.05,2),0.03),taxYhTax) />
                    <#assign taxMoneySumTotal=bigUtils.getSum(taxMoneySumTotal,taxMoneySum) />
                    <td>${bigUtils.getNotNullStr(taxMoneySum)}</td>
                    <!--小计-->
                </tr>
            </#list>
        </#if>

        <!--车位列表-->
        <#if carLotList??>
            <#list carLotList as carLot>

                <#assign index=index+ 1 />
                <!--序号-->
                <#assign buyHousePersonCarLotList=(buyHousePersonCarLotMap[carLot.id?c])! />
                <tr>
                    <td>${intUtils.getNotNullStr(index)}</td>
                    <td>
                        <#if buyHousePersonCarLotList?? && buyHousePersonCarLotList?size != 0>
                            <#list buyHousePersonCarLotList as buyHousePersonCarLot>
                                ${strUtils.getNotNull(buyHousePersonCarLot.name)}
                            </#list>
                        </#if>
                    </td>
                    <td>
                        是
                    </td>
                    <td>
                        <#if buyHousePersonCarLotList?? && buyHousePersonCarLotList?size != 0>
                            <#list buyHousePersonCarLotList as buyHousePersonCarLot>
                                ${strUtils.getNotNull(buyHousePersonCarLot.id_card)}
                            </#list>
                        </#if>
                    </td>
                    <td>地下车位${carLot.floor}层<br/>${carLot.houseNum}</td>
                    <#assign azHouseAreaTotal=bigUtils.getSum(azHouseAreaTotal,carLot.buildArea) />
                    <td>${carLot.buildArea}</td>
                    <#assign taxHouseMoneyTotal=bigUtils.getSum(taxHouseMoneyTotal,carLot.price) />
                    <td>${bigUtils.getNotNullStr(carLot.price)}</td>
                    <!--安置房金额-->
                    <td>0.00</td>
                    <td>0.00</td>
                    <td>车位</td>
                    <td>${bigUtils.getNotNullStr(0)}</td>
                    <!--拆迁补偿面积-->
                    <td>${bigUtils.getNotNullStr(0)}</td>
                    <!--拆迁补偿金额-->
                    <td>${bigUtils.getNotNullStr(0)}</td>
                    <!--减免税额-->
                    <#assign taxBaseMoney=bigUtils.getBigAndBigDiv(carLot.price,1.05,2) />
                    <#assign taxBaseMoneyTotal=bigUtils.getSum(taxBaseMoneyTotal,taxBaseMoney) />
                    <td>${bigUtils.getNotNullStr(taxBaseMoney)}</td>
                    <!--计税基数-->
                    <#assign
                            shouldTaxMoney=bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(carLot.price,1.05,2),0.03) />
                    <#assign shouldTaxMoneyTotal=bigUtils.getSum(shouldTaxMoneyTotal,shouldTaxMoney) />
                    <td>${bigUtils.getNotNullStr(shouldTaxMoney)}</td>
                    <!--应交税款-->
                    <#assign yhTaxBaseMoneyTotal=bigUtils.getSum(yhTaxBaseMoneyTotal,carLot.price) />
                    <td>${bigUtils.getNotNullStr(carLot.price)}</td><!--印花税-->
                    <#assign taxYhTax=bigUtils.getBigAndBigMul(carLot.price,0.00025) />
                    <#assign yhTaxMoneyTotal=bigUtils.getSum(yhTaxMoneyTotal,taxYhTax) />
                    <td>${bigUtils.getNotNullStr(taxYhTax)}</td>
                    <#assign
                            taxMoneySum=bigUtils.getSum(bigUtils.getBigAndBigMul(bigUtils.getBigAndBigDiv(carLot.price,1.05,2),0.03),taxYhTax) />
                    <#assign taxMoneySumTotal=bigUtils.getSum(taxMoneySumTotal,taxMoneySum) />
                    <td>${bigUtils.getNotNullStr(taxMoneySum)}</td>
                    <!--小计-->
                </tr>
            </#list>
        </#if>


        <tr>
            <td colspan="5">合计</td>
            <td>${bigUtils.getNotNullStr(azHouseAreaTotal)}</td>
            <td>${bigUtils.getNotNullStr(taxHouseMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(0)}</td>
            <td>${bigUtils.getNotNullStr(0)}</td>
            <td></td>
            <td>${bigUtils.getNotNullStr(taxAzAreaTotal)}</td>
            <td>${bigUtils.getNotNullStr(taxAzAreaMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(subTaxMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(taxBaseMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(shouldTaxMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(yhTaxBaseMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(yhTaxMoneyTotal)}</td>
            <td>${bigUtils.getNotNullStr(taxMoneySumTotal)}</td>
        </tr>
        <tr>
            <td colspan="19">
                <br/><br/><br/>
                <p style="font-size: 16px;  text-indent: 0em;margin-top: 20px">
                    制表人：&#160;&#160;&#160;
                    制表单位审查(盖章)：&#160;&#160;&#160;
                    业主单位审查(盖章)：&#160;&#160;&#160;
                    业务复核：&#160;&#160;&#160;
                    房屋征收部门(盖章)：
                </p>
                <br/><br/><br/><br/>
            </td>
        </tr>
        <tr>
            <td colspan="19">
                <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">
                    说明：1、计税基数=（安置房金额-拆迁补偿金额）/1.05。<br/>
                    &#160;&#160;&#160;2、储藏间、车位需交印花税0.05%，印花税2019年1月1日后选房减半；住宅不用缴交印花税。<br/>
                    &#160;&#160;&#160;3、照顾面积、扩购面积计费时已包含5%税费。<br/>
                    &#160;&#160;&#160;4、本表一式四份，经办单位、业主单位、房屋征收部门、税务部门各执一份。
                </p>
            </td>
        </tr>
    </table>

</div>
</body>

</html>